home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1996 September / JCSM Shareware Collection (JCS Distribution) (September 1996).ISO / bother__ / broker.zip / SBNSTALL.BAT < prev    next >
DOS Batch File  |  1994-02-28  |  3KB  |  131 lines

  1. echo OFF
  2. CLS
  3. IF "%1" == "" GOTO :bye
  4. IF %1 == A GOTO goodbye
  5. IF %1 == a goto goodbye
  6. IF %1 == A: goto goodbye
  7. if %1 == a: goto goodbye
  8.  
  9. IF %1 == B GOTO :FD
  10. IF %1 == b GOTO :FD
  11. IF %1 == B: GOTO :FD
  12. IF %1 == b: GOTO :FD
  13.  
  14.  
  15. :HD
  16. CLS
  17. echo                               SMARTBROKER  INSTALLATION
  18. echo                               for your Hard Disk
  19. echo 
  20. echo 
  21. echo Copying...
  22. %1:
  23. CD \
  24. MD SMART
  25. CD SMART
  26. COPY A:*.*
  27. cd \
  28. IF EXIST CONFIG.SYS GOTO :CFIGMSG
  29. COPY A:CONFIG.SYS
  30.  
  31. REM USER HAS A CONFIG.SYS FILE
  32. :CFIGMSG
  33. echo 
  34. echo 
  35. echo 
  36. echo       You already have a CONFIG.SYS file on your disk.
  37. echo       Check to make certain that it contains a line
  38. echo       with  FILES=20 (or greater).
  39. echo 
  40. echo 
  41. echo 
  42. GOTO END
  43.  
  44. :FD
  45. CLS
  46. echo                     SMARTBROKER  INSTALLATION
  47. echo                     for your Floppy Disk Drive
  48. echo 
  49. echo 
  50. echo 
  51. echo          Place a new formatted, bootable DOS diskette in drive B.
  52. echo 
  53. echo 
  54. echo 
  55. PAUSE
  56. IF EXIST B:COMMAND.COM GOTO CP1
  57. echo         WARNING! Disk in B: is not bootable.  Replace with disk which
  58. echo         contains COMMAND.COM and DOS. If you need to prepare one at this
  59. echo         time, you may abort the program by pressing CTRL-C and answering
  60. echo         Y to the question given, preparing a disk with the command
  61. echo         FORMAT B:/S  and then restarting installation.
  62. echo         Otherwise...SMARTBROKER will continue installation.
  63. echo 
  64. PAUSE
  65. IF EXIST B:COMMAND.COM GOTO CP1
  66. echo         Disk in B: is still not bootable.  Please restart installation
  67. echo         after preparing a new disk.
  68. goto END
  69. :CP1
  70. CLS
  71. DIR B:
  72. echo 
  73. echo 
  74. echo         Please check the number of "bytes free" above.  If this number is
  75. echo         LESS THAN 250000, not enough space remains on the disk to continue
  76. echo         the installation.  To remedy this, replace the disk in drive B:
  77. echo         with a new, formatted disk with DOS and COMMAND.COM.  If you need
  78. echo         to prepare one at this time, you may bye the program by pressing
  79. echo         CTRL-C and answering Y to the question given, preparing a disk with
  80. echo         the command FORMAT B:/S, and then restarting installation.
  81. echo         Otherwise... SmartBroker will continue installation.
  82. echo 
  83. pause
  84. echo 
  85. echo Copying...
  86. COPY sb*.sbf B:
  87. COPY Broker.EXE B:
  88. Copy sbstocks.ovr b:
  89. COPY *.sys B:
  90. COPY sbAUTOEX.TXT B:AUTOEXEC.BAT
  91. CLS
  92. echo 
  93. echo 
  94. echo 
  95. echo          Remove the disk from drive B and label it:
  96. echo 
  97. echo                   "SMARTBROKER : System Disk".
  98. echo 
  99. echo 
  100. echo 
  101. goto END
  102.  
  103. :bye
  104. CLS
  105. echo 
  106. echo 
  107. echo 
  108. echo 
  109. echo        You must specify a disk drive letter after the SBNSTALL command.
  110. echo        This should be B for floppy disks or the letter designating
  111. echo        your hard disk if you have one (i.e. 'C')..
  112. echo 
  113. echo 
  114. echo 
  115. GOTO :END
  116.  
  117. :goodbye
  118. CLS
  119. echo 
  120. echo 
  121. echo 
  122. echo 
  123. echo        Please specify a drive letter other than A. Use B for floppy
  124. echo        disks or the letter you use for your hard disk if you have one
  125. echo        (i.e. 'C').
  126. echo 
  127. echo 
  128.  
  129. :END
  130. echo        When done...type "CD\SMART"  then   "BROKER" to run.
  131.